from django.shortcuts import render

from .serializers import XinwenSerializer

from .models import xinwen

# Create your views here.

from rest_framework import viewsets, mixins


class XinwenViews(viewsets.ModelViewSet):
    serializer_class = XinwenSerializer

    def get_queryset(self):
        return xinwen.objects.all()

